<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="_fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>标签</title>
    <!--    <link rel="stylesheet" href="css/semantic.min.css">-->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../static/css/me.css">

</head>
<body>
<!--导航-->
<nav class="ui inverted attached segment m-padded-tb-mini m-shadown-small" th:replace="_fragments :: menu(3)">
    <div class="ui container">
        <div class="ui inverted secondary stackable menu">
            <h2 class="ui header teal item">ZhouChb</h2>
            <a href="#" class="m-item item m-mobile-hide"><i class="home icon"></i>首页</a>
            <a href="#" class=" m-item item m-mobile-hide"><i class="idea icon"></i>分类</a>
            <a href="#" class="active m-item item m-mobile-hide"><i class="tags icon"></i>标签</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="clone icon"></i>归档</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="info icon"></i>关于我</a>
            <div class="right item m-item m-mobile-hide"><!--style="margin-right: 50px !important;"-->
                <div class="ui icon input">
                    <input type="text" placeholder="搜索" style="width: 260px">
                    <i class="search link icon"></i>
                </div>
            </div>
            <div class="item mini m-padded-tb-mini m-item  m-mobile-hide"></div>
        </div>
    </div>
    <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show ">
        <i class="sidebar icon"></i>
    </a>
</nav>
<!--=========================中间内容==============================-->
<div class="m-padded-tb-larges m-container-small">
    <!--===头部====-->
    <div class="ui top attached segment animate__animated animate__fadeInLeft animate__fast">
        <div class="ui middle aligned two column grid">
            <div class="column">
                <h3 class="ui green header ">标签</h3>
            </div>
            <div class="right aligned column">
                共 <h2 class="ui  header m-font-thin m-inline-block broadcast" th:if="${tags!=null}"? th:text="${#arrays.length(tags)}">18</h2> 个
            </div>
        </div>
    </div>
    <!--标签-->
    <div class="ui attached segment m-padded-tb-medim m-padded-lr-medium animate__animated animate__fadeInLeft animate__fast" >

        <a href="#" th:href="@{/tags/{id} (id=${tag.id})}" class="ui  tag label m-margin-tb m-font-size" th:classappend="${tag.id==activeTagId}?'olive'" th:each="tag : ${tags}" >
            <span th:text="${tag.name}">斗破苍穹</span>
            <div class="detail " th:if="${tags!=null}"? th:text="${tag.tagCount}">28</div>
        </a>


    </div>
    <div class="ui  middle aligned  top attached olive segment">
        <div class="ui padded segment m-padded-tb-medim m-padded-lr-small m-mobile-lr-clear" th:if="${tags!=null}"? th:each="blog : ${blogPageInfo.list}">

            <div class="ui  mobile reversed  stackable grid">
                <div class="eleven wide column">
                    <h3 class="ui header"><a th:href="@{/blog/{id}(id=${blog.id})}" th:text="${blog.title}"
                                             class="m-font-black" >壮我道宗！</a></h3>
                    <p class="m-font" ><a class="m-font-black" th:href="@{/blog/{id}(id=${blog.id})}" th:text="${blog.description}">“林动师兄，请壮我道宗！”
                        低沉如雷鸣般的声音，在这天地间轰然的回荡起来，那股莫名的情感，重重的撞击在林动的心头，这一刻，巨大的酸楚，冲击着胸膛，令得他那眼睛也是泛红了起来。</a></p>
                    <div class="ui  grid ">
                        <!--左边-->
                        <div class="row ">
                        <div class="eleven wide column">
                            <div class="ui mini horizontal link list">
                                <div class="item">
                                    <img src="../static/images/touxiang.jpg"
                                         th:src="@{${blog.user.avatar}}" style="width: 22px;height: 22px"
                                         class="ui avatar image">
                                    <div class="content "
                                         style="margin-left: 4px;font-size:8px;font-weight: 660"><span
                                            th:text="${blog.user.nickname}">ZhouChb</span>
                                    </div>
                                </div>
                                <div class="item">
                                    <i class="calendar icon" style="width: 100px!important;">&nbsp;<span
                                            th:text="${#dates.format(blog.updateTime,'yyyy-MM-dd')}">2021-8-29</span></i>
                                </div>
                                <div class="item">
                                    <i class="eye icon">&nbsp;<span th:text="${blog.views}">8888</span></i>
                                </div>
                            </div>
                        </div>
                            <!--右边标签-->
                            <div class="right aligned five wide column">
                                <a href="#" target="_blank"
                                   class="ui mini orange label basic  m-font-thin-normal m-padded-mini"
                                   th:text="${blog.type.name}">认识升级</a>
                            </div>
                        </div>
                        <div class="row">
                            <div class="column m-margin-left " style="width: auto!important;" th:each="btag : ${blog.tags}">
                                <a href="#" th:href="@{/tags/{id}(id=${btag.id})}" class="ui  tag label m-margin-tb-miniy mini  m-font-thin m-opacity-small" th:classappend="${btag.id==activeTagId}?'orange'"  style="font-size: 6px" th:text="${btag.name}" >武动乾坤</a>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="five wide column">
                    <a href="#"  th:href="@{/blog/{id}(id=${blog.id})}"><img class="ui rounded image m-img" src="../static/images/liuxing.png" th:src="@{${blog.firstPicture}}"></a>
                    <!--    style="width: 13em;height: 9em"-->
                </div>

            </div>
        </div>

    </div>

    <!--========页码========-->
    <div class="ui attached bottom attached segment">
        <div class="ui middle  aligned two column grid "> <!---->
            <div class="column">
                <a href="#" th:href="@{/tags/{id}(id=${activeTagId},pn=${blogPageInfo.pageNum}-1)}" th:classappend="${blogPageInfo.isFirstPage}?'disabled'" class="ui mini link blue  button m-margin-left-big">上一页</a>
            </div>
            <div class=" right aligned  column"><!---->
                <a href="#" th:href="@{/tags/{id}(id=${activeTagId},pn=${blogPageInfo.pageNum}+1)}" th:classappend="${blogPageInfo.isLastPage}?'disabled'" class="ui mini link blue  button m-margin-right-big">下一页</a>
            </div>
        </div>
    </div>
</div>

</div>
</div>
<br>
<!--========================底部footer===============================-->
<!---->
<footer class="ui inverted vertical segment m-padded-tb-big" th:replace="_fragments :: footer">
    <div class="ui center aligned container">
        <div class="ui stackable inverted divided grid">
            <div class="three wide column">
                <div class="ui inverted link list">
                    <div class="item">
                        <img src="../static/images/meWechat.jpg" class="ui rounded image" alt="" style="width: 110px">
                    </div>
                </div>
            </div>
            <div class="four wide column">
                <h4 class="ui inverted header  m-font-spaced" style="font-weight: normal">最新博客</h4>
                <div class="ui inverted link list m-font-thin">
                    <a href="#" class="item">笔记01</a>
                    <a href="#" class="item">笔记01</a>
                    <a href="#" class="item">笔记01</a>
                </div>
            </div>

            <div class="five wide column">
                <h4 class="ui inverted header" style="font-weight: normal">Blog介绍</h4>
                <p class="m-font-thin m-font-spaced m-opacity-mini ">修炼一途，乃窃阴阳，夺造化，转涅槃，握生死，掌轮回。 武之极，破苍穹，动乾坤！</p>
            </div>
            <div class="four wide column">
                <h4 class="ui inverted header  m-font-spaced" style="font-weight: normal">联系我</h4>
                <div class="ui inverted  list" style="text-align: left;margin-left: 30px">
                    <div class="item">
                        <img src="../static/images/qq.png" style="width: 20px">
                        <span class="m-font-thin m-opacity-mini"
                              style="font-size: 14px">&nbsp;&nbsp;QQ：2251073096</span>
                    </div>
                    <div class="item">
                        <img src="../static/images/email.png" style="width: 18px">
                        <span class="m-opacity-mini" style="font-size: 14px">&nbsp;&nbsp;Eamil：2251073096@qq.com</span>
                    </div>
                </div>
            </div>
        </div>

        <div class="ui inverted section divider"></div>
        <p class="m-font-thin m-font-spaced m-opacity-tiny" style="font-size: 13px">Copyright © 2021 - 2022 ZhouChB All
            Rights Reserved V.1.0</p>
    </div>
</footer>
<!--/*/<th:block th:replace="_fragments :: script">/*/-->
<!--<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"/>-->
<script src="../static/js/jquery.min.js"></script>
<script src="../static/js/semantic.min.js"></script>
<!--<script>
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide');
    });
</script>-->
<script src="../static/js/my.js"></script>
<!--<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>-->
<!--/*/</th:block>/*/-->
</body>
</html>